﻿using System;
using ASPNETVN.PORTAL.Modules.CMS.Components;

namespace ASPNETVN.PORTAL.Modules.CMS.Pages
{
    public partial class Print : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                
                if (string.IsNullOrEmpty(Request.QueryString["ItemID"]) == false )
                {
                    Item item = Item.Load(Convert.ToInt32(Request.QueryString["ItemID"]));
                    if (item != null)
                    {
                        this.Header.Title = item.Title;
                        // Tiêu đề
                        lblTitle.Text = item.Title;
                        // Nội dung.
                        lblContent.Text = Server.HtmlDecode(item.Body);
                    }
                }
            }
        }
    }
}
